package Decorator;

public class ScrollADecorator extends ADecorator {
    public ScrollADecorator(Compoent.AComponent AComponent) {
        super(AComponent);
    }

    @Override
    public void display() {
        super.display();
        addScroll();
    }

    public void addScroll() {
        System.out.println("添加滚动条");
    }
}
